.git-ref-tag {
    display: inline-flex;
    align-items: center;

    max-width: 8rem;
    padding: 0 0.175rem;
    margin: 0 0.175rem;

    border: solid 1px rgba(255, 255, 255, 0.3);
    border-radius: 0.125rem;

    .icon-git-hub {
        margin-right: 0.125rem;
    }

    &__display-name {
        word-wrap: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.git-ref-tag-2 {
    background-color: $color-bg-3;
    padding: 0.125rem 0.25rem;
    font-weight: bold;
}

.theme-light {
    .git-ref-tag {
        border-color: $color-light-border;
    }

    .git-ref-tag-2 {
        background-color: saturate(lighten($color-light-bg-5, 48.5%), 50%);
    }
}
